package org.jeecg.common.modules.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: order
 * @Author: jeecg-boot
 * @Date:   2020-08-26
 * @Version: V1.0
 */
@Data
@TableName("order_info")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="order对象", description="order")
public class OrderInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**支付订单id*/
	@Excel(name = "支付订单id", width = 15)
    @ApiModelProperty(value = "支付订单id")
    private String payOrderId;
	/**doctorId*/
	@Excel(name = "doctorId", width = 15)
    @ApiModelProperty(value = "doctorId")
    private String doctorId;
	/**患者ID*/
	@Excel(name = "患者ID", width = 15)
    @ApiModelProperty(value = "患者ID")
    private String wxUserinfoId;
	/**商品类型，1 图文问诊  2 视频问诊*/
	@Excel(name = "商品类型，1 图文问诊  2 视频问诊", width = 15)
    @ApiModelProperty(value = "商品类型，1 图文问诊  2 视频问诊")
    private Integer shopType;
	/**金额：元*/
	@Excel(name = "金额：元", width = 15)
    @ApiModelProperty(value = "金额：元")
    private BigDecimal amount;
	/**订单状态 0 待接诊、1 进行中、2 确认中、3 结算中、 4 已结算、 5、 已关闭*/
	@Excel(name = "订单状态 0 待接诊、1 进行中、2 确认中、3 结算中、 4 已结算、 5、 已关闭", width = 15)
    @ApiModelProperty(value = "订单状态 0 待接诊、1 进行中、2 确认中、3 结算中、 4 已结算、 5、 已关闭")
    private Integer status;
	/**关闭原因*/
	@Excel(name = "关闭原因", width = 15)
    @ApiModelProperty(value = "关闭原因")
    private String reason;
	/**提醒时间*/
	@Excel(name = "提醒时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "提醒时间")
    private Date remindTime;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否激活，患者支付后医生24小时内有回复则激活")
	private Boolean active;
    /**修改时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date finishTime;
}
